<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" charset="UTF-8"/>
    <title>Document</title>
    <style type="text/css">
        body {
            font-family: SimSun;
            margin: 0;
            padding: 0;
            font-size: 12px;
        }

        .head,
        .title {
            display: flex;
        }

        .head span,
        .title span {
            flex: 1;
            margin-right: 20px;
        }

        .th_1 {
            background-color: rgb(245, 246, 250);
        }

        table {
            border-collapse: collapse;
            border-spacing: 0;
            table-layout: fixed;
            /* width: 697px; */
            word-wrap: break-word;
            word-break: break-all;
            font-size: 12px;
            border-top: 1px solid #000;
            border-left: 1px solid #000;
        }

        th {
            font-weight: 400;
        }

        table td,
        table th {
            text-align: center;
            word-wrap: break-word;
            word-break: break-all;
            font-size: 12px;
            border-right: 1px solid #000;
            border-bottom: 1px solid #000;
        }


        h2 {
            text-align: center;
        }
        .img_c{
            height: 100px;
            margin-left: 200px;
            transform: rotate(-90deg);
        }
    </style>
</head>
<body>

<table style="width: 100%;">
    <tr>
        <th class="th_1" style="width: 15%;">姓名</th>
        <th style="width: 35%;">${name}</th>
        <th class="th_1" style="width: 15%;">所在部门</th>
        <th style="width: 35%;">${departName}</th>
        <th class="th_1" style="width: 15%;">岗位</th>
        <th style="width: 35%;">${jobName}</th>
    </tr>
    <tr>

        <th class="th_1">考试名称</th>
        <th>${examName}</th>
        <th class="th_1">是否重考</th>
        <th>${isFirst}</th>
        <th class="th_1">交卷时间</th>
        <th>${submitTime}</th>
    </tr>
    <tr>
        <th class="th_1">考试得分</th>
        <th>${score}</th>
        <th class="th_1">主观题得分</th>
        <th>${subjectiveScore}</th>
        <th class="th_1">客观题得分</th>
        <th>${objectiveScore}</th>
    </tr>

    <#if showAutograph>
    <tr>
        <th class="th_1">签名</th>
        <th colspan="5">
            <img src="${autograph}" style="width: 40px;transform: rotate(-90deg); display: inline-block " />
        </th>
    </tr>
    </#if>
</table>
<br/>
<table width="100%" cellpadding="2" cellspacing="0">
    <thead>
    <tr class="th_1">
        <th rowspan="2" width="30%">题目名称</th>
        <th rowspan="2" width="10%">题目类型</th>
        <th rowspan="2" width="30%">选项</th>
        <th rowspan="2" width="10%">考员答案</th>
        <th rowspan="2" width="10%">对错/得分</th>
        <th rowspan="2" width="10%">正确答案</th>
    </tr>
    </thead>
    <tbody>
    <#list list as t>
        <tr>
            <td>${t.name}</td>
            <td>${t.type}</td>
            <td>
                <#list t.optionList as c>
                    ${c}
                </#list>
            </td>
            <td>${t.userAnswer}</td>
            <td>${t.result}</td>
            <td>${t.rightKey}</td>
        </tr>
    </#list>
    </tbody>
</table>

</body>
</html>
